var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    top: app.globalData.navMarginTop,
    height: app.globalData.navBarHeight,
    navHeight: app.globalData.navHeight + 'px', //头部距离
  },

  onLoad() {
    let mobile = wx.getStorageSync('mobile').split('')
    mobile.splice(3, 4, '****')
    this.setData({
      phone: mobile.join('')
    })
  },

  // 返回主界面
  onBackIndex() {
    wx.reLaunch({
      url: '/pages/index/index',
    })
  }
})